package com.express.ExpPercentage.dao;


import com.aqgj.util.BaseDaoImpl;
import com.express.ExpPercentage.bean.ExpPercentage;
import org.springframework.stereotype.Repository;



@Repository("ExpPercentageDao")
public class ExpPercentageDao extends BaseDaoImpl<ExpPercentage> {

    public void save(ExpPercentage expPercentage){
        if(expPercentage.getId()!=null&&!"".equals(expPercentage.getId())){
            this.currentSession().merge(expPercentage);
        }else{
            this.currentSession().save(expPercentage);
        }
    }
}